package mini_v340.conf

import java.io.File

import com.google.gson.Gson
import org.apache.commons.io.FileUtils

/**
  * Created by chenbo on 2018/9/12.
  */

object Apply{

  case class Apply( host:String, webSite:Int, city:Int, area:Int,start_user:Int,end_user:Int,run_time:Int )

  private[this] val fileConfigUrl:String=getClass.getClassLoader.getResource("data/conf/Apply.json").getPath

  private[this] val jsonString = FileUtils.readFileToString(new File(fileConfigUrl),"UTF-8")
  private[this] val gson = new Gson()

  def apply: Apply = gson.fromJson(jsonString,classOf[Apply])

}
